// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_CHK_QULITY_CHECKING_RESULT
// * CreateDate    : 2011-11-24 23:08:09
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-24 23:08:09
// * LastChanger   : 2011-11-24 23:08:09
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ChkQulityCheckingResultEntity : EntityBase
    {
        public ChkQulityCheckingResultTable TableSchema
        {
            get
            {
                return ChkQulityCheckingResultTable.Current;
            }
        }

        public ChkQulityCheckingResultEntity()
        {

        }

        public ChkQulityCheckingResultEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckingResultId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_RESULT_ID"]));
            this.CheckingItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_ID"]));
            this.CheckingItemDetailId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_DETAIL_ID"]));
            this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
            this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
            this.ProcessingMode = Convert.ToString(CommonFunctions.ToObject(dr["PROCESSING_MODE"]));
        }

        public ChkQulityCheckingResultEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckingResultId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_RESULT_ID"]));
            this.CheckingItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_ID"]));
            this.CheckingItemDetailId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_ITEM_DETAIL_ID"]));
            this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
            this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
            this.ProcessingMode = Convert.ToString(CommonFunctions.ToObject(dr["PROCESSING_MODE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ChkQulityCheckingResultTable.Current;
            }
        }

        #region Perporty List
        public string CheckingResultId
        {
            get { return Convert.ToString(GetData(ChkQulityCheckingResultTable.C_CHECKING_RESULT_ID)); }
            set { SetData(ChkQulityCheckingResultTable.C_CHECKING_RESULT_ID, value); }
        }

        public string CheckingItemId
        {
            get { return Convert.ToString(GetData(ChkQulityCheckingResultTable.C_CHECKING_ITEM_ID)); }
            set { SetData(ChkQulityCheckingResultTable.C_CHECKING_ITEM_ID, value); }
        }

        public string CheckingItemDetailId
        {
            get { return Convert.ToString(GetData(ChkQulityCheckingResultTable.C_CHECKING_ITEM_DETAIL_ID)); }
            set { SetData(ChkQulityCheckingResultTable.C_CHECKING_ITEM_DETAIL_ID, value); }
        }

        public decimal Qty
        {
            get { return Convert.ToDecimal(GetData(ChkQulityCheckingResultTable.C_QTY)); }
            set { SetData(ChkQulityCheckingResultTable.C_QTY, value); }
        }

        public string Result
        {
            get { return Convert.ToString(GetData(ChkQulityCheckingResultTable.C_RESULT)); }
            set { SetData(ChkQulityCheckingResultTable.C_RESULT, value); }
        }

        public string ProcessingMode
        {
            get { return Convert.ToString(GetData(ChkQulityCheckingResultTable.C_PROCESSING_MODE)); }
            set { SetData(ChkQulityCheckingResultTable.C_PROCESSING_MODE, value); }
        }

        #endregion
    }


}

